<!doctype html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>跳转中...</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
    <script type="text/javascript" src="/js/jquery-2.1.4.min.js"></script>
    <script type="text/javascript" src="/js/pingpp.js"></script>
    <script type="text/javascript" src="/js/layermobile/layer.js"></script>

</head>
<body>
    <h3 style="text-align: center;">提示：跳转中...</h3>
    <p style="display: none;" id="data">{$my_data}</p>
    <script type="text/javascript">
        $(function () {
            var order = "{$order}";
            var token = "{$token}";
            var chanal = "{$chanal}";
            var url = "{$payurl}"+'/Pay/Pay?token='+token;

            $.ajax({
               type:"post",
               data:{order:order,chanal:chanal},
               url:url,
               beforeSend:function(){
                   layer.open({type: 2});
               },
               success:function(data){
                   pingpp.createPayment(data, function (result, err) {
                       console.log(result);
                       console.log(err);
                   });
               }
           });
        });
    </script>
</body>
</html>